<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>放大镜</title>
    <link rel="stylesheet" href="./放大镜.css" />
  </head>
  <body>
    <!-- 第一个 -->
    <div class="box enlarge1">
      <div class="img">
        <div class="mask"></div>
      </div>
      <ul>
        <li class="active" imgName="1">
          <img src="./imgs/1.small.jpg" alt="" />
        </li>
        <li imgName="2"><img src="./imgs/2.small.jpg" alt="" /></li>
      </ul>
      <div class="enlarge"></div>
    </div>
    <br /><br />
    <hr />
    <br /><br />
    <!-- 第二个 -->
    <div class="box enlarge2">
      <div class="img">
        <div class="mask"></div>
      </div>
      <ul>
        <li class="active" imgName="1">
          <img src="./imgs/1.small.jpg" alt="" />
        </li>
        <li imgName="2"><img src="./imgs/2.small.jpg" alt="" /></li>
      </ul>
      <div class="enlarge"></div>
    </div>
  </body>
  <script src="./放大镜.js"></script>
  <script>
    let enlarge1 = new Enlarge(".enlarge1");
    let enlarge2 = new Enlarge(".enlarge2");
  </script>
</html>
